import { request } from 'umi';

/** 获取 组织树 POST */
export async function treeOrganizationPersonal(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<AdminOrganizationData.Organization[]>>(
        '/user/personal/organization/tree',
        {
            method: 'POST',
            data: options || {},
        },
    );
}

/** 获取 账号 POST */
export async function pageAccount(options?: { [key: string]: any }) {
    return request<BaseResponseBean.responsePage<AdminAccountData.Account[]>>('/user/personal/account/page', {
      method: 'POST',
      data: options || {},
    });
  }